import {get, post} from '@/utils/request'

/*
* 广告条件分页展示
*/
export const getList = (data) => {
  return post('/ad/app/list', data)
}

/*
* 修改广告状态
*/
export const updateStatus = (data) => {
  return post('/ad/app/updateStatus', data)
}

/*
* 修改广告信息
*/
export const updateAppAds = (data) => {
  return post('/ad/app/updateAppAds', data)
}

/*
* 广告添加
*/
export const addAppAds = (data) => {
  return post('/ad/app/addAppAds', data)
}

/*
* 根据id查找广告详细信息
*/
export const selectAppAdById = (id) => {
  return get('/ad/app/selectAppAdById/' + id , {})
}